/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.core.jdbc;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author sunil
 */
public class DriverDemo {
    
    public static void registerConnection() throws ClassNotFoundException, SQLException{
        //registering and loading Driver Manager
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");        
        Connection con = DriverManager.getConnection("jdbc:odbc:dnsName", "user", "password");        
        con.setAutoCommit(false);        
    }

}
